import request from "@/utils/request2"

/**
 * 
 * https://typhoon.slt.zj.gov.cn/
 */


const getTyhoonList = () => {
    return request({
        "url":"https://typhoon.slt.zj.gov.cn/Api/TyhoonActivity",
        method: 'get'
    });
}
/**
 * 
 * @param {String|Number} num 台风编号
 * @returns 
 */
const getTyphoonInfo = (num)=>{
    return request({
        "url":"https://typhoon.slt.zj.gov.cn/Api/TyphoonInfo/"+num,
        method: 'get'
    });
};
export {getTyhoonList, getTyphoonInfo }